package org.uni_hi.lsep;

import java.io.File;


public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		AppManager appMan=new AppManager();
		appMan.showWindow();
		for(int i=0;i<args.length;i++){
			if(args[i].equals("-f")){
				try {
					File f=new File(args[++i]);
					if(f.isFile()&&f.exists()){
						AppManager.getFileManager().loadSettingsFile(f);
					}else{
						AppManager.getMainFrame().setStatus("Fehler beim laden der Datei "+f.toString());
					}
				} catch (NullPointerException e) {
					e.printStackTrace();
				}
			}
		}
	}

}
